package org.example.lease.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.lease.model.entities.ApartmentInfo;
import org.example.lease.vo.apartment.ApartmentDetailVo;
import org.example.lease.vo.apartment.ApartmentItemVo;
import org.example.lease.vo.apartment.ApartmentQueryVo;
import org.example.lease.vo.apartment.ApartmentSubmitVo;

/**
 * @author 宋孟林
 * @description
 * @date: 2025/5/12 16:52
 */
public interface ApartmentInfoService extends IService<ApartmentInfo> {
    void saveOrUpdateApartment(ApartmentSubmitVo apartmentSubmitVo);
    IPage<ApartmentItemVo> pageApartmentItemByQuery(IPage<ApartmentItemVo> page, ApartmentQueryVo apartmentQueryVo);
    ApartmentDetailVo getDetailById(Long id);
    void removeApartmentInfoById(Long id);
 }
